package com.atmilan.quartz.model.dto.bellettini;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 *  Bellettini商品映射对象
 * @Description:
 * @author daigb
 * @date 2021-06-02
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class BellettiniProductResDTO {

    /**
     * 商品数据
     */
    @JsonProperty(value = "rows")
    private List<BellettiniGoodsRes> products;

    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class BellettiniGoodsRes {

        /**
         * sku
         */
        @JsonProperty(value = "sku")
        private String sku;

        /**
         * model
         */
        @JsonProperty(value = "model")
        private String model;

        /**
         * model_code
         */
        @JsonProperty(value = "model_code")
        private String modelCode;

        /**
         * model_color_code
         */
        @JsonProperty(value = "model_color_code")
        private String modelColorCode;

        /**
         * 品牌
         */
        @JsonProperty(value = "brand")
        private String brand;

        /**
         * 年份
         */
        @JsonProperty(value = "year")
        private String year;

        /**
         * 季节
         */
        @JsonProperty(value = "season")
        private String season;

        /**
         * 性别
         */
        @JsonProperty(value = "gender")
        private String gender;

        /**
         * 分类
         */
        @JsonProperty(value = "category")
        private String category;

        /**
         * 标题
         */
        @JsonProperty(value = "title")
        private String title;

        /**
         * designer_color
         */
        @JsonProperty(value = "designer_color")
        private String designerColor;

        /**
         * filter_colors
         */
        @JsonProperty(value = "filter_colors")
        private String[] filterColors;

        /**
         *描述
         */
        @JsonProperty(value = "description")
        private String description;

        /**
         * 材料
         */
        @JsonProperty(value = "materials")
        private String materials;

        /**
         * 产地
         */
        @JsonProperty(value = "made_in")
        private String madeIn;

        /**
         * measures
         */
        @JsonProperty(value = "measures")
        private String measures;

        /**
         * 原价
         */
        @JsonProperty(value = "market_price")
        private String marketPrice;

        /**
         * partner_discount
         */
        @JsonProperty(value = "partner_discount")
        private Integer partnerDiscount;

        /**
         * 成本价
         */
        @JsonProperty(value = "partner_price")
        private String partnerPrice;

        /**
         * customer_discount
         */
        @JsonProperty(value = "customer_discount")
        private Integer customerDiscount;

        /**
         * url
         */
        @JsonProperty(value = "url")
        private String url;

        /**
         * images
         */
        @JsonProperty(value = "images")
        private String[] images;

        /**
         * size_format
         */
        @JsonProperty(value = "size_format")
        private String sizeFormat;

        /**
         * sizes
         */
        @JsonProperty(value = "sizes")
        private List<BellettiniSku> sizes;

        @Data
        @JsonIgnoreProperties(ignoreUnknown = true)
        public static class BellettiniSku {
            /**
             * sku_size
             */
            @JsonProperty(value = "sku_size")
            private String skuSize;

            /**
             * 大小
             */
            @JsonProperty(value = "size")
            private String size;

            /**
             * 数量
             */
            @JsonProperty(value = "quantity")
            private String quantity;
        }
    }

}
